From 8e9a8dd978d0ecf2a79196dca1226310ccf138cd Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Wed, 25 Sep 2024 13:30:29 -0700 Subject: [PATCH] tests: add file: tests with existing files Windows sometimes has issues when opening the same file twice, so these test two situations where that could potentially occur. Reported-by: ralfjunker on github Ref: #15043 Closes #15045 --- tests/data/Makefile.am | 2 +- tests/data/test1490 | 43 ++++++++++++++++++++++++++++++++++++++++++ tests/data/test1491 | 37 ++++++++++++++++++++++++++++++++++++ tests/data/test205 | 2 +- 4 files changed, 82 insertions(+), 2 deletions(-) create mode 100644 tests/data/test1490 create mode 100644 tests/data/test1491 diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index f5f903e869..90442d80e3 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -193,7 +193,7 @@ test1455 test1456 test1457 test1458 test1459 test1460 test1461 test1462 \ test1463 test1464 test1465 test1466 test1467 test1468 test1469 test1470 \ test1471 test1472 test1473 test1474 test1475 test1476 test1477 test1478 \ test1479 test1480 test1481 test1482 test1483 test1484 test1485 test1486 \ -test1487 test1488 test1489 \ +test1487 test1488 test1489 test1490 test1491 \ \ test1500 test1501 test1502 test1503 test1504 test1505 test1506 test1507 \ test1508 test1509 test1510 test1511 test1512 test1513 test1514 test1515 \ diff --git a/tests/data/test1490 b/tests/data/test1490 new file mode 100644 index 0000000000..41d4c3a409 --- /dev/null +++ b/tests/data/test1490 @@ -0,0 +1,43 @@ + + + +FILE + + + +# no Server-side + +# Client-side + + +file + + +"upload" with file:// overwriting existing + + +file://localhost%FILE_PWD/%LOGDIR/result%TESTNUMBER.txt -T %LOGDIR/upload%TESTNUMBER.txt + + +data +in +file +to +write + + +already existing + + + +# Verify data after the test has been "shot" + + +data +in +file +to +write + + + diff --git a/tests/data/test1491 b/tests/data/test1491 new file mode 100644 index 0000000000..84d4e94e0f --- /dev/null +++ b/tests/data/test1491 @@ -0,0 +1,37 @@ + + + +FILE + + + + + + +# Client-side + + +file + + +file:// don't overwrite self with --skip-existing + + +file://localhost%FILE_PWD/%LOGDIR/test%TESTNUMBER.txt -o %LOGDIR/test%TESTNUMBER.txt --skip-existing + + +foo + bar +bar + foo +moo + + + +# Verify data after the test has been "shot" + + +Note: skips transfer, "%LOGDIR/test%TESTNUMBER.txt" exists locally + + + diff --git a/tests/data/test205 b/tests/data/test205 index 8239f63222..a1b02d8a6e 100644 --- a/tests/data/test205 +++ b/tests/data/test205 @@ -14,7 +14,7 @@ FAILURE file -"upload" with file:// +"upload" nonexisting with file:// file://localhost/%PWD/%LOGDIR/nonexisting/result%TESTNUMBER.txt -T %LOGDIR/upload%TESTNUMBER.txt -- 2.47.3