1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

advio: add unit test for local files

This commit is contained in:
Steffen Vogel 2017-05-07 15:49:25 +02:00
parent 7e145966a5
commit b60f679162

View file

@ -32,6 +32,20 @@
* The Sciebo share is read/write accessible via WebDAV. */
#define BASE_URI "https://1Nrd46fZX8HbggT:badpass@rwth-aachen.sciebo.de/public.php/webdav/node/tests"
Test(advio, local)
{
AFILE *af;
int ret;
char buf[32];
af = afopen("/proc/version", "r");
cr_assert(af, "Failed to open local file");
ret = fscanf(af->file, "%32s", buf);
cr_assert_eq(ret, 1);
cr_assert_str_eq(buf, "Linux");
}
Test(advio, download)
{
AFILE *af;