Modify dehydrate/test.sh
Some checks failed
Build-Test-Publish / build (linux/arm64) (push) Failing after 9s
Build-Test-Publish / build (linux/amd64) (push) Successful in 26s
Build-Test-Publish / test-install-from-scratch (linux/amd64) (push) Has been skipped
Build-Test-Publish / test-install-from-scratch (linux/arm64) (push) Has been skipped
Some checks failed
Build-Test-Publish / build (linux/arm64) (push) Failing after 9s
Build-Test-Publish / build (linux/amd64) (push) Successful in 26s
Build-Test-Publish / test-install-from-scratch (linux/amd64) (push) Has been skipped
Build-Test-Publish / test-install-from-scratch (linux/arm64) (push) Has been skipped
This commit is contained in:
22
dehydrate/test/dehydrate_test_data/test_recreate.cpp
Normal file
22
dehydrate/test/dehydrate_test_data/test_recreate.cpp
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
#include <iostream>
|
||||
#include "generated/_test1.hpp"
|
||||
#include "generated/_original.hpp"
|
||||
|
||||
int main() {
|
||||
std::cout << "Testing file recreation..." << std::endl;
|
||||
|
||||
// Test single file recreation
|
||||
std::cout << "Recreating single file..." << std::endl;
|
||||
if (recreate_test1::recreate_file("recreated")) {
|
||||
std::cout << "Single file recreation returned true" << std::endl;
|
||||
}
|
||||
|
||||
// Test directory recreation
|
||||
std::cout << "Recreating directory tree..." << std::endl;
|
||||
if (recreate_original::recreate_tree("recreated/tree")) {
|
||||
std::cout << "Directory recreation returned true" << std::endl;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user