summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2008-06-04 13:46:53 -0400
committerPeter Jones <pjones@pjones2.localdomain>2008-06-04 13:46:53 -0400
commitd3c681f1b61071a6e410bcf859b34ebfc0677fa8 (patch)
treeb97ddcf68d9cea0103f5049c5197fad307065198 /src
parente3ceb7f906e1d6f0c3df430f6e48d003a39bf874 (diff)
downloadplymouth-d3c681f1b61071a6e410bcf859b34ebfc0677fa8.tar.gz
plymouth-d3c681f1b61071a6e410bcf859b34ebfc0677fa8.tar.xz
plymouth-d3c681f1b61071a6e410bcf859b34ebfc0677fa8.zip
Get rid of ply-copy-test.
Diffstat (limited to 'src')
-rw-r--r--src/libply/tests/Makefile.am1
-rw-r--r--src/libply/tests/ply-copy-test.am11
-rw-r--r--src/libply/tests/ply-copy-test.c58
3 files changed, 0 insertions, 70 deletions
diff --git a/src/libply/tests/Makefile.am b/src/libply/tests/Makefile.am
index 424d859..879fd89 100644
--- a/src/libply/tests/Makefile.am
+++ b/src/libply/tests/Makefile.am
@@ -13,7 +13,6 @@ include $(srcdir)/ply-logger-test.am
include $(srcdir)/ply-array-test.am
include $(srcdir)/ply-list-test.am
include $(srcdir)/ply-event-loop-test.am
-include $(srcdir)/ply-copy-test.am
include $(srcdir)/ply-copy-dir-test.am
endif
diff --git a/src/libply/tests/ply-copy-test.am b/src/libply/tests/ply-copy-test.am
deleted file mode 100644
index 3da1b7b..0000000
--- a/src/libply/tests/ply-copy-test.am
+++ /dev/null
@@ -1,11 +0,0 @@
-TESTS += ply-copy-test
-
-ply_copy_test_CFLAGS = $(PLYMOUTH_CFLAGS)
-ply_copy_test_LDADD = $(PLYMOUTH_LIBS)
-
-ply_copy_test_SOURCES = \
- $(srcdir)/../ply-logger.h \
- $(srcdir)/../ply-logger.c \
- $(srcdir)/../ply-utils.h \
- $(srcdir)/../ply-utils.c \
- $(srcdir)/ply-copy-test.c
diff --git a/src/libply/tests/ply-copy-test.c b/src/libply/tests/ply-copy-test.c
deleted file mode 100644
index 76f36ae..0000000
--- a/src/libply/tests/ply-copy-test.c
+++ /dev/null
@@ -1,58 +0,0 @@
-/* ply-copy-test.c - tests some of the copy utility functions
- *
- * Copyright (C) 2007 Red Hat, Inc.
- *
- * This file is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published
- * by the Free Software Foundation; either version 2 of the License,
- * or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
- *
- * Written by: Ray Strode <rstrode@redhat.com>
- */
-#include "config.h"
-
-#include <stdbool.h>
-#include <stdint.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-#include "ply-utils.h"
-
-bool
-test_file_copy (void)
-{
- bool file_is_copied;
-
- if (!ply_copy_file ("../ply-utils.c", "./ply-utils.c"))
- return false;
-
- file_is_copied = system ("diff -u ../ply-utils.c ./ply-utils.c") == 0;
-
- unlink ("./ply-utils.c");
-
- return file_is_copied;
-}
-
-int
-main (int argc,
- char **argv)
-{
- if (!test_file_copy ())
- {
- fprintf (stderr, "could not complete test: %m");
- return 1;
- }
-
- return 0;
-}
-/* vim: set ts=4 sw=4 expandtab autoindent cindent cino={.5s,(0: */