File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
tests/DS/sds_detect_version Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ CLEANFILES = *.log *.results oscap_debug.log.*
3
3
4
4
TESTS_ENVIRONMENT = \
5
5
builddir=$(top_builddir ) \
6
- srcdir =$(top_srcdir ) \
6
+ top_srcdir =$(top_srcdir ) \
7
7
OSCAP_FULL_VALIDATION=1 \
8
8
$(top_builddir ) /run
9
9
Original file line number Diff line number Diff line change 12
12
13
13
set -e -o pipefail
14
14
15
+ echo $srcdir
16
+
15
17
function test_oscap_info {
16
18
version=" $1 "
17
19
stdout=" $( mktemp) "
18
20
stderr=" $( mktemp) "
19
21
ds=" $( mktemp) "
20
- cp scap-ds.xml $ds
22
+ cp $srcdir / scap-ds.xml $ds
21
23
sed -i " s/X.X/${version} /g" $ds
22
24
23
25
$OSCAP info $ds > $stdout 2> $stderr
@@ -28,7 +30,7 @@ function test_oscap_info {
28
30
rm $ds
29
31
}
30
32
31
- SDS=$( find $srcdir /schemas/sds -maxdepth 1 -mindepth 1 -type d -printf ' %f\n' )
33
+ SDS=$( find $top_srcdir /schemas/sds -maxdepth 1 -mindepth 1 -type d -printf ' %f\n' )
32
34
33
35
for sds_version in $SDS
34
36
do
You can’t perform that action at this time.
0 commit comments