testsuite: Update the library tests for new location

Signed-off-by: Craig Small <csmall@dropbear.xyz>
This commit is contained in:
Craig Small 2022-08-29 20:40:45 +10:00
parent 1502648ff9
commit 15a0a71406
6 changed files with 8 additions and 8 deletions

View File

@ -287,7 +287,7 @@ library_libproc2_la_SOURCES = \
library/uptime.c \
library/include/xtra-procps-debug.h
library_libproc2_la_includedir = $(includedir)/procps/
library_libproc2_la_includedir = $(includedir)/libproc2/
library_libproc2_la_include_HEADERS = \
library/include/diskstats.h \
library/include/meminfo.h \

View File

@ -148,7 +148,7 @@ proc expect_spawn_retval { test retval } {
proc make_pipeproc { } {
global pipeproc_pid pipeproc_spawnid topdir
set testproc_realpath "${topdir}/lib/test_process"
set testproc_realpath "${topdir}/src/tests/test_process"
set pipeproc_pid [ spawn $testproc_realpath ]
set pipeproc_spawnid $spawn_id
@ -157,7 +157,7 @@ proc make_pipeproc { } {
proc make_testproc { } {
global testproc_path testproc_comm testproc_arg_str testproc1_pid testproc2_pid topdir
set testproc_realpath "${topdir}/lib/test_process"
set testproc_realpath "${topdir}/src/tests/test_process"
set testproc_comm "spcorp"
set testproc_path [ exec mktemp -u ]
@ -189,7 +189,7 @@ proc make_testproc { } {
proc make_testshm_proc { } {
global testshmproc_pid testshm_spawnid topdir shmid
set testshm_realpath "${topdir}/lib/test_shm"
set testshm_realpath "${topdir}/src/tests/test_shm"
set testshmproc_pid [ spawn $testshm_realpath ]
set testshmproc_spawnid $spawn_id

View File

@ -2,7 +2,7 @@
# Testsuite for lib/fileutils program
#
set noarg "${topdir}lib/test_fileutils"
set noarg "${topdir}src/tests/test_fileutils"
set test "without argument"
spawn $noarg

View File

@ -1,3 +1,3 @@
#!/bin/sh
${PWD}/../lib/test_fileutils >&-
${PWD}/../src/tests/test_fileutils >&-

View File

@ -1,3 +1,3 @@
#!/bin/sh
${PWD}/../lib/test_fileutils > /dev/full
${PWD}/../src/tests/test_fileutils > /dev/full

View File

@ -2,7 +2,7 @@
# Testsuite for lib/strutils program
#
set teststr "${topdir}lib/test_strutils"
set teststr "${topdir}src/tests/test_strutils"
set test "without argument"
spawn $teststr