eclass/tests $ ./flag-o-matic.sh * Testing is-flag ... [ ok ] * Testing is-ldflag ... [ ok ] * Testing is-flagq -L ... [ ok ] * Testing is-flagq -a ... [ ok ] * Testing is-flagq -x ... [ ok ] * Testing is-ldflagq -a ... [ ok ] * Testing is-ldflagq -n=* ... [ ok ] * Testing is-ldflagq -n ... [ ok ] * Testing strip-unsupported-flags for -z=2 ... [ ok ] * Testing strip-unsupported-flags for '-B/foo' ... [ ok ] * Testing strip-unsupported-flags for '-B /foo' ... [ ok ] * Testing filter-flags basic ... [ ok ] * Testing filter-flags glob ... [ ok ] * Testing strip-flags basic ... * strip-flags: ADAFLAGS: changed '-foo-ADA' to '' * strip-flags: CFLAGS: changed '-foo-C' to '' * strip-flags: CPPFLAGS: changed '-foo-CPP' to '' * strip-flags: CXXFLAGS: changed '-foo-CXX -O999 ' to '-O2' * strip-flags: CCASFLAGS: changed '-foo-CCAS' to '' * strip-flags: FFLAGS: changed '-foo-F' to '' * strip-flags: FCFLAGS: changed '-foo-FC' to '' * strip-flags: LDFLAGS: changed '-foo-LD' to '' [ ok ] * Testing replace-flags basic ... [ ok ] * Testing replace-flags glob ... [ ok ] * Testing append-cflags basic ... [ ok ] * Testing append-cflags -DFOO='a b c' ... [ ok ] * Testing raw-ldflags ... [ ok ] * Testing test-flags-CC (valid flags) ... [ ok ] * Testing test-flags-CC (valid flags, absolute path) ... [ ok ] * Testing test-flags-CC (invalid flags) ... [ ok ] * Testing test-flags-CC (valid flags w/clang) ... [ ok ] * Testing test-flags-CC (invalid flags w/clang) ... [ ok ] * Testing test-flags-CC (gcc-valid but clang-invalid flags) ... [ ok ] * Testing test-flags-CC (unused flags w/clang) ... * Failed; flags are: ADAFLAGS= CFLAGS= -DFOO="a b c" CPPFLAGS= CXXFLAGS=-O0 -mcpu=good -cow CCASFLAGS= FFLAGS= FCFLAGS= LDFLAGS=-O1 --as-needed -z now [ !! ]