Skip to content

Commit

Permalink
tests: fix altabi matching on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
bapt committed Nov 25, 2024
1 parent f8892aa commit b2566ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
File renamed without changes.
11 changes: 10 additions & 1 deletion tests/frontend/pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ pkg_no_database_body() {

pkg_config_defaults_body()
{
case "${OS}" in
FreeBSD|DragonFly)
MATCH_ALTABI='^ *ALTABI = "[a-zA-Z0-9]+:[a-z\.A-Z0-9]+:[a-zA-Z0-9]+:[a-zA-Z0-9:]+";$'
;;
*)
MATCH_ALTABI='^ *ALTABI = "[a-zA-Z0-9]+:[a-z\.A-Z0-9]+:[a-zA-Z0-9_]+;$'
;;
esac

atf_check \
-o match:'^ *PKG_DBDIR = "/var/db/pkg";$' \
-o match:'^ *PKG_CACHEDIR = "/var/cache/pkg";$' \
Expand All @@ -30,7 +39,7 @@ pkg_config_defaults_body()
-o match:'^ *ASSUME_ALWAYS_YES = false;$' \
-o match:'^ *PLIST_KEYWORDS_DIR = "";$' \
-o match:'^ *SYSLOG = true;$' \
-o match:'^ *ALTABI = "[a-zA-Z0-9]+:[a-z\.A-Z0-9]+:[a-zA-Z0-9]+:[a-zA-Z0-9:]+";$' \
-o match:"${MATCH_ABI}" \
-o match:'^ *DEVELOPER_MODE = false;$' \
-o match:'^ *VULNXML_SITE = "https://vuxml.freebsd.org/freebsd/vuln.xml.xz";$' \
-o match:'^ *FETCH_RETRY = 3;$' \
Expand Down

0 comments on commit b2566ad

Please sign in to comment.