Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
1d254db9
Kaydet (Commit)
1d254db9
authored
Ock 13, 2003
tarafından
Lars Langhans
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
selftests
üst
f2de01f1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
74 additions
and
1 deletion
+74
-1
README
testshl2/workben/codegen/README
+9
-0
checkfile
testshl2/workben/codegen/checkfile
+7
-0
cleanup
testshl2/workben/codegen/cleanup
+9
-0
makefile.mk
testshl2/workben/codegen/makefile.mk
+2
-1
selftest
testshl2/workben/codegen/selftest
+47
-0
No files found.
testshl2/workben/codegen/README
0 → 100644
Dosyayı görüntüle @
1d254db9
This directory contains a simple code generator self test.
Within UNIX simply start ./selftest
You will get lot of output.
The code generator creates some files,
dmake compiles the generated code,
testshl2 checks the code.
If something goes wrong, you will hopefully get an informal error message.
testshl2/workben/codegen/checkfile
0 → 100644
Dosyayı görüntüle @
1d254db9
#!/bin/csh
if ( -e $1 ) then
echo "$1 exist."
else
echo "$1 doesn't exist."
endif
testshl2/workben/codegen/cleanup
0 → 100644
Dosyayı görüntüle @
1d254db9
#!/bin/csh
# cleanup
rm -f *.cxx *.new *.exp
if ( -e makefile.mk_orig ) then
# rename original makefile back
mv makefile.mk_orig makefile.mk
endif
testshl2/workben/codegen/makefile.mk
Dosyayı görüntüle @
1d254db9
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
#
#
# $RCSfile: makefile.mk,v $
# $RCSfile: makefile.mk,v $
#
#
# $Revision: 1.
1
$
# $Revision: 1.
2
$
#
#
# last change: $Author: lla $
# last change: $Author: lla $
#
#
...
@@ -74,6 +74,7 @@ ENABLE_EXCEPTIONS=TRUE
...
@@ -74,6 +74,7 @@ ENABLE_EXCEPTIONS=TRUE
#------------------------------- All object files -------------------------------
#------------------------------- All object files -------------------------------
# --- Targets ------------------------------------------------------
# --- Targets ------------------------------------------------------
.INCLUDE
:
target.mk
.INCLUDE
:
target.mk
testshl2/workben/codegen/selftest
0 → 100644
Dosyayı görüntüle @
1d254db9
#!/bin/csh
echo "========== Generate code =========="
echo
perl ../../source/codegen/codegen.pl test.job
echo
echo "========== check files =========="
echo
./checkfile makefile.new
./checkfile export.exp
./checkfile skeleton.cxx
./checkfile nomethod.cxx
echo
echo "========== backup makefile =========="
echo
# backup original makefile
mv makefile.mk makefile.mk_orig
mv makefile.new makefile.mk
echo
echo "========== build new sources =========="
echo
dmake debug=t
echo
echo "========== call testshl2 =========="
echo
if ( -e ../../${INPATH}/bin/testshl2 ) then
../../${INPATH}/bin/testshl2 -jobonly test.job
../../${INPATH}/bin/testshl2 ../../${INPATH}/lib/libtest.so
else
echo "testshl2 doesn't exist, test canceled."
endif
echo
echo "========== cleanup =========="
echo
./cleanup
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment