File: test_examples.sh

package info (click to toggle)
mir-core 0.0.12-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 372 kB
  • sloc: makefile: 7; sh: 7
file content (14 lines) | stat: -rwxr-xr-x 263 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

set -euo pipefail

dub fetch dtools

# extract examples
dub run dtools:tests_extractor -- -i source -o out

# compile the examples
for file in $(find out -name "*.d") ; do
    echo "Testing: $file"
    $DMD -de -unittest -Isource -c -o- "$file"
done