dharple / detox

Tames problematic filenames
BSD 3-Clause "New" or "Revised" License
318 stars 19 forks source link

Fix unit tests under macOS #69

Open dharple opened 3 years ago

dharple commented 3 years ago

github actions config:

  build-macos-unit-test:
    runs-on: macos-latest
    steps:
    - uses: actions/checkout@v2
    - name: brew install
      run: brew install automake coreutils bash check
    - name: autoreconf
      run: autoreconf --install
    - name: configure
      run: ./configure --with-check
    - name: make
      run: make
    - name: simple test
      run: bin/simple-test.sh
    - name: make check
      run: make check
    - name: make distcheck
      run: make distcheck

configure output:

checking for getopt_long... yes
checking for mandoc... no
checking for library containing ceil... none required
checking whether compiler supports -flto=auto... no
checking whether compiler supports -fstack-clash-protection... no
checking whether compiler supports -fstack-protector-strong... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
./configure: line 4352: check: command not found
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile

the calls to gcc were missing the flags needed by gcov, too....

found while working on #60