NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Need help writing ATF test
I am stuck trying to create new ATF test case. Hitting "Unexpected token
`<<EOF>>'; expected a header name" but can't figure out where error is.
Output of aft-run ------------------------------------------------------
Content-Type: application/X-atf-tps; version="3"
info: atf.version, Automated Testing Framework 0.20 (atf-0.20)
info: tests.root, /usr/tests/fs/fullfs
info: time.start, Wed Nov 26 19:34:34 UTC 2025
info: uname.sysname, NetBSD
info: uname.nodename, netbsdb.dev63.com
info: uname.release, 10.1
info: uname.version, NetBSD 10.1 (GENERIC) #0: Mon Dec 16 13:08:11 UTC
2024 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC
tps-count: 1
...
testa: atf_test_case: not found
tp-start: 1764185674.421850, testa, 0
tp-end: 1764185674.421883, testa, Invalid format for test case list: 1:
Unexpected token `<<EOF>>'; expected a header name
info: time.end, Wed Nov 26 19:34:34 UTC 2025
Content of Atffile -----------------------------------------------------
Content-Type: application/X-atf-atffile; version="1"
prop: test-suite = "testa"
tp: testa
Content of testa -------------------------------------------------------
#!/bin/sh
atf_test_case testa
testa_head(){
atf_set "descr" "Test for ATF tests"
}
testa_body(){
atf_check -s eq:1 -o empty -e empty test -d a
atf_check -s eq:0 -o empty -e empty mkdir a
atf_check -s eq:0 -o empty -e empty test -d a
}
-----------------------------------------------------------------------
Home |
Main Index |
Thread Index |
Old Index