fix dd commands

This commit is contained in:
Christoph J. Scherr 2023-09-15 12:59:37 +02:00
parent 367f5a3aab
commit 2f6e8b9ae2
2 changed files with 54 additions and 54 deletions

View File

@ -55,16 +55,16 @@ add_executable( huffman src/huffman/src/huffman.c )
execute_process ( execute_process (
COMMAND bash -c "mkdir -p src/huffman/testfiles" COMMAND bash -c "mkdir -p src/huffman/testfiles"
COMMAND bash -c "yes 'SAFJALJ AF OIAIFOsdp' | head -c 100KB > src/huffman/testfiles/small.txt" COMMAND bash -c "yes 'SAFJALJ AF OIAIFOsdp' | head -c 100KB > src/huffman/testfiles/small.txt"
COMMAND bash -c "dd if=/dev/urandom of=src/huffman/testfiles/1K-random.img count=1KiB" COMMAND bash -c "dd if=/dev/urandom of=src/huffman/testfiles/1K-random.img count=1 bs=1KiB"
COMMAND bash -c "dd if=/dev/urandom of=src/huffman/testfiles/10K-random.img count=10KiB" COMMAND bash -c "dd if=/dev/urandom of=src/huffman/testfiles/10K-random.img count=1 bs=10KiB"
COMMAND bash -c "dd if=/dev/urandom of=src/huffman/testfiles/100K-random.img count=100KiB" COMMAND bash -c "dd if=/dev/urandom of=src/huffman/testfiles/100K-random.img count=1 bs=100KiB"
COMMAND bash -c "dd if=/dev/urandom of=src/huffman/testfiles/1M-random.img count=1MiB" COMMAND bash -c "dd if=/dev/urandom of=src/huffman/testfiles/1M-random.img count=1 bs=1MiB"
COMMAND bash -c "dd if=/dev/urandom of=src/huffman/testfiles/10M-random.img count=10MiB" COMMAND bash -c "dd if=/dev/urandom of=src/huffman/testfiles/10M-random.img count=1 bs=10MiB"
COMMAND bash -c "dd if=/dev/zero of=src/huffman/testfiles/1K-zero.img count=1KiB" COMMAND bash -c "dd if=/dev/zero of=src/huffman/testfiles/1K-zero.img count=1 bs=1KiB"
COMMAND bash -c "dd if=/dev/zero of=src/huffman/testfiles/10K-zero.img count=10KiB" COMMAND bash -c "dd if=/dev/zero of=src/huffman/testfiles/10K-zero.img count=1 bs=10KiB"
COMMAND bash -c "dd if=/dev/zero of=src/huffman/testfiles/100K-zero.img count=100KiB" COMMAND bash -c "dd if=/dev/zero of=src/huffman/testfiles/100K-zero.img count=1 bs=100KiB"
COMMAND bash -c "dd if=/dev/zero of=src/huffman/testfiles/1M-zero.img count=1MiB" COMMAND bash -c "dd if=/dev/zero of=src/huffman/testfiles/1M-zero.img count=1 bs=1MiB"
COMMAND bash -c "dd if=/dev/zero of=src/huffman/testfiles/10M-zero.img count=10MiB" COMMAND bash -c "dd if=/dev/zero of=src/huffman/testfiles/10M-zero.img count=1 bs=10MiB"
COMMAND bash -c "echo -e \"Wer\ndas\nliest\nist\ndoof\n\" > src/huffman/testfiles/tiny.txt" COMMAND bash -c "echo -e \"Wer\ndas\nliest\nist\ndoof\n\" > src/huffman/testfiles/tiny.txt"
COMMAND bash -c "yes 'lslfkpoipop iipfiasp' | head -c 1MB > src/huffman/testfiles/mid.txt" COMMAND bash -c "yes 'lslfkpoipop iipfiasp' | head -c 1MB > src/huffman/testfiles/mid.txt"
) )

View File

@ -1,4 +1,4 @@
# Install script for directory: /home/plex/Documents/code/c/c-basic # Install script for directory: /home/cscherr/Documents/code/c/c-basic
# Set the install prefix # Set the install prefix
if(NOT DEFINED CMAKE_INSTALL_PREFIX) if(NOT DEFINED CMAKE_INSTALL_PREFIX)
@ -29,7 +29,7 @@ endif()
# Install shared libraries without execute permission? # Install shared libraries without execute permission?
if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
set(CMAKE_INSTALL_SO_NO_EXE "0") set(CMAKE_INSTALL_SO_NO_EXE "1")
endif() endif()
# Is this installation the result of a crosscompile? # Is this installation the result of a crosscompile?
@ -50,5 +50,5 @@ endif()
string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
"${CMAKE_INSTALL_MANIFEST_FILES}") "${CMAKE_INSTALL_MANIFEST_FILES}")
file(WRITE "/home/plex/Documents/code/c/c-basic/${CMAKE_INSTALL_MANIFEST}" file(WRITE "/home/cscherr/Documents/code/c/c-basic/${CMAKE_INSTALL_MANIFEST}"
"${CMAKE_INSTALL_MANIFEST_CONTENT}") "${CMAKE_INSTALL_MANIFEST_CONTENT}")