diff options
author | Loïc Hoguin <[email protected]> | 2013-06-03 17:18:19 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-06-03 17:18:19 +0200 |
commit | 4b13eb4bc64d7f04291fcb62ee4794a672d8d3b5 (patch) | |
tree | 1ca4370366e49d163d4528fee493775c4283a9ca /README.md | |
parent | 03a27991428d3510f9ef6ff53a3bd7347a3831b4 (diff) | |
download | ct_helper-4b13eb4bc64d7f04291fcb62ee4794a672d8d3b5.tar.gz ct_helper-4b13eb4bc64d7f04291fcb62ee4794a672d8d3b5.tar.bz2 ct_helper-4b13eb4bc64d7f04291fcb62ee4794a672d8d3b5.zip |
Add create_static_dir/1 and delete_static_dir/1
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -3,6 +3,29 @@ ct_helper Helper modules for common_test suites. +Creating temporary static files +------------------------------- + +This library includes a function that will generate files tailored +for testing web servers. The following snippet will create a +directory containing all the files and subsequently delete it all. + +``` erlang +ct_helper:create_static_dir(Path), +%% do things! +ct_helper:delete_static_dir(Path). +``` + +The following files are created. Replace `./` with the `Path` passed +as argument to find the real path of the files. + + * ./ + * ./directory/ + * ./unknown + * ./style.css + * ./index.html + * ./unreadable (mode 0333) + Generating SSL certificates --------------------------- |