Debian Codegraph @

test-suite/misc/coq_makefile_destination_of.sh

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
•1 #!/usr/bin/bash
2
3 export COQBIN=$BIN
4 export PATH=$COQBIN:$PATH
5
6 TMP=`mktemp -d`
7 cd $TMP
8
9 function assert_eq() {
10 if [ "$1" != "$2" ]; then
11 echo "rocq makefile generates destination $1 != $2"
12 cd /
13 rm -rf "$TMP"
14 exit 1
15 fi
16 }
17
18 assert_eq `rocq makefile -destination-of src/Y/Z/Test.v -Q src X` "X//Y/Z"
19 mkdir src
20 assert_eq `rocq makefile -destination-of src/Y/Z/Test.v -Q src X` "X//Y/Z"
21 mkdir -p src/Y/Z
22 touch src/Y/Z/Test.v
23 assert_eq `rocq makefile -destination-of src/Y/Z/Test.v -Q src X` "X//Y/Z"
24 cd /
25 rm -rf "$TMP"
26 exit 0